package cn.itlight.org.mapper;

import cn.itlight.basic.mapper.BaseMapper;
import cn.itlight.org.domain.Employee;
import cn.itlight.org.query.EmployeeQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @Description: TODO
* @Author: TomLiu
* @Version: 1.0
* @Date:  2022/6/21 18:43  
*/
public interface EmployeeMapper extends BaseMapper<Employee> {

    Employee loadByUserName(String username);

    void removeRoleEmployee(Long id);

    void saveRoleEmployee(@Param("eId") Long id, @Param("ids") List<Long> roles);

    Employee loadByLogininfoId(Long id);

    List<Employee> loadByShopId(Long shopId);
}
